class Snake:
    def __init__(self,breed,weight):
        self.breed = breed
        self.weight = weight

    def eat(self):
        print('我冷血食肉')

snake1 = Snake('cobra','1吨')
print(snake1.breed)
print(snake1.weight)
snake1.eat()
